package program03;

/**
 * @version 1.0
 * @since:
 * @ClassName:ConsumeInfo
 * @author: Li Jiahui
 * @date: 2021-01-17 20:49
 * 用户消费信息类 特征：统计通话时长、统计上网流量、每月消费金额
 * ConsumeInfo为用户消费信息类的实现
 */
public class ConsumeInfo {
    //1.自定义私有化成员变量
    private int statCallTime;
    private int statNetByte;
    private double statUseFees;
    //3.自定义无参和有参的构造方法
    public ConsumeInfo() {}
    public ConsumeInfo(int statCallTime, int statNetByte, double statUseFees){
        setStatCallTime(statCallTime);
        setStatNetByte(statNetByte);
        setStatUseFees(statUseFees);
    }
    //2.提供公有的get和set方法
    public int getStatCallTime() {
        return statCallTime;
    }
    public void setStatCallTime(int statCallTime) {
        this.statCallTime = statCallTime;
    }
    public int getStatNetByte() {
        return statNetByte;
    }
    public void setStatNetByte(int statNetByte) {
        this.statNetByte = statNetByte;
    }
    public double getStatUseFees() {
        return statUseFees;
    }
    public void setStatUseFees(double statUseFees) {
        this.statUseFees = statUseFees;
    }
}
